var app = getApp();
var api = require('../../../data/api.js');
var CatalogListApiHandle = ({
    request_tags: function (object_params) {
        //分类列表信息
        /*app.chasefunRequest({
            uri: 'member/tag/list',
            method: 'POST',
            data: object_params.data,
            success: function (res) {
                object_params.success(res.data);
            },
            fail: function () {
                wx.hideToast()
            },
            complete: function () {

            }
        })*/

        api.network.commonRequest({
            url: api.requestUrl.tagListUrl,
            data:object_params.data,
            success: function (res) {
                object_params.success(res.data);
            },
            fail: function () {
                wx.hideToast()
            },
            complete: function () {

            },
        })
    },
    request_locations: function (object_params) {

        //分类地方列表信息        
        /*app.chasefunRequest({
            uri: 'member/mddlist',
            method: 'POST',
            data: object_params.data,
            success: function (res) {                
                object_params.success(res.data);
            },
            fail: function () {
                wx.hideToast()

            },
            complete: function () {

            }
        })*/

        api.network.commonRequest({
            url: api.requestUrl.mddlistUrl,
            data:object_params.data,
            success: function (res) {
                object_params.success(res.data);
            },
            fail: function () {
                wx.hideToast()
            },
            complete: function () {

            },
        })
    },
    request_priceList: function (object_params) {
        //分类价格列表信息
      /*  app.chasefunRequest({
            uri: 'member/pricelist',
            method: 'POST',
            data: object_params.data,
            success: function (res) {
                object_params.success(res.data);
            },
            fail: function () {

            },
            complete: function () {

            }
        })*/

          api.network.commonRequest({
            url: api.requestUrl.pricelistUrl,
            data:object_params.data,
            success: function (res) {
                object_params.success(res.data);
            },
            fail: function () {
                wx.hideToast()
            },
            complete: function () {

            },
        })
    },
    //分类排序选项列表信息
    request_orderList: function(){
        var temp = ["默认","离我最近","人气最高","价格从低到高","价格从高到低","最新上线","最近开始"];
        return temp;
    }
});
module.exports = CatalogListApiHandle;